package com.hejr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("TB_USER")
public class User extends Model<User> {

    @TableId(value = "USER_ID", type = IdType.AUTO)

    private Integer userId;

    @TableField("USER_NAME")
    private String userName;


    @Override
    protected Serializable pkVal() {
        return userId;
    }
}